<template>
	<view class="tool-tip-wrap">
		<view class="tool-tip">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default{
		
	}
</script>

<style lang="scss">
	.tool-tip-wrap{
		padding-bottom: 12rpx;
	}
	.tool-tip{
		position: relative;
		padding: 8rpx 20rpx;
		border-radius: 10rpx;
		background:rgba(0,0,0,0.5);
		color:#fff;
		font-size: 24rpx;
		&:before{
			content:'';
			position: absolute;
			left: 50%;
			top: 100%;
			transform: translateX(-50%);
			width: 0; 
			height: 0;
			border-width: 4px;
			border-style: solid;
			border-color:rgba(0,0,0,0.5) transparent transparent transparent;
		}
	}
</style>
